import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import { store } from "./stores";
import { createPinia } from 'pinia'
import { i18n } from '@/lang/index';
// Vant 桌面端适配
import "@vant/touch-emulator";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


/* --------------------------------
Vant 中有个别组件是以函数的形式提供的，
包括 Toast，Dialog，Notify 和 ImagePreview 组件。
在使用函数组件时，unplugin-vue-components
无法自动引入对应的样式，因此需要手动引入样式。
------------------------------------- */
import "vant/es/toast/style";
import "vant/es/dialog/style";
import "vant/es/notify/style";
import "vant/es/image-preview/style";
import "./assets/style/index.scss";
import "./assets/style/index.css"
import './assets/iconfont/iconfont.css'
import 'swiper/css';



import AOS from 'aos'
import 'aos/dist/aos.css'

AOS.init({
  // easing: 'ease-in',
  // once:true,
});


const app = createApp(App);
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);
app.use(router).use(store).use(i18n) 

app.mount("#app");
